package com.iweb.day05;

/**
 * @author WuYongheng
 * @date 2021/10/31
 * @desc 动物父类
 */
public abstract class Animal {


    private String name;
    private int age;
    private String breed;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    /**
     * 抽象方法-吃东西
     * @param food
     */
    public abstract void eat();
}
